package com.panshi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("/查询评论")
public class QueryCommentVO {

    @ApiModelProperty(value = "问题的ID")
    private Long answerId;

    private int currentPage;

    @ApiModelProperty(value = "评论父ID")
    private Long parentId;

    @ApiModelProperty(value = "每页查询大小")
    private Integer pageSize=5;

    @ApiModelProperty(value = "当前页码数")
    private int current;

    private int setPageSize(){
        return 5;
    }

    public int getCurrentPage(){
        return (this.current - 1) * this.pageSize;
    }

}
